package com.jrx.anytxn.transaction.job.chargeoffProcess.step;

import com.jrx.anytxn.transaction.bean.ChargeoffPaymentBean;
import com.jrx.anytxn.transaction.entity.TlChargeoffInfo;
import com.jrx.anytxn.transaction.service.IChargeoffService;
import org.springframework.batch.item.ItemProcessor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ChargeoffPaymentProcessor implements ItemProcessor<TlChargeoffInfo, ChargeoffPaymentBean> {

    @Autowired
    private IChargeoffService chargeoffService;

    @Override
    public ChargeoffPaymentBean process(TlChargeoffInfo tlChargeoffInfo) throws Exception {
        return chargeoffService.chargeoffPay(tlChargeoffInfo);
    }
}
